// 引用网络请求中间件
import request from './../utils/request';

// 砍一刀
export function chopKnife(data) {
	return request({
		url: '/api/OrderShareRecord/ChopKnife',
		method: 'post',
		data
	})
}

// 订单详情
export function orderInfo(data) {
	return request({
		url: '/api/OrderShareRecord/OrderInfo',
		method: 'post',
		data
	})
}

// 判断该订单是否已经砍过
export function checkKnife(data) {
	return request({
		url: '/api/OrderShareRecord/Check',
		method: 'POST',
		data
	})
}

// 是否启用发起砍价
export function shareFlag(data) {
	return request({
		url: '/api/OrderShareRecord/HandShare',
		method: 'GET',
		data
	})
}